#include "stdafx.h"


#include "qpanel.h"

using namespace micro::gui;


QPanel::QPanel(  void )
{
}

QPanel::~QPanel( void )
{
}



bool QPanel::OnPreCreate( CREATESTRUCT & cs )
{
    QWindow::OnPreCreate( cs );

    cs.style =	WS_CLIPCHILDREN | WS_CHILD | WS_VISIBLE ;//  |WS_BORDER ; asta face sa palpaie

    cs.lpCreateParams = this;/*pt a atasa clasa ferestrei}; */
    return true;
}
bool  QPanel::OnPreRegisterClass( WNDCLASS & wc )
{
    wc.style			= CS_HREDRAW | CS_VREDRAW;
    wc.cbClsExtra		= 0;
    wc.cbWndExtra		= 0;
    wc.hIcon			= 0;
    wc.hCursor			= ::LoadCursor( nullptr, IDC_ARROW );
    wc.hbrBackground	=  ( HBRUSH )( COLOR_BTNFACE + 1 );
    wc.lpszMenuName		= nullptr;
    wc.lpszClassName	= _T( "QP" );

    return true;
}